docs(backend): document prisma.config.ts and its role alongside schema.prisma - #1146
Conversation
Note on the failing CI checksThe red checks here are pre-existing on
This PR changes only Markdown, so it cannot affect any of those jobs — a docs edit does not change Happy to open a separate PR fixing the |
faa0d2a to
a215357
Compare
ogazboiz
left a comment
There was a problem hiding this comment.
verified against the real prisma.config.ts: the dotenv import, schema, migrations.path and datasource.url claims are all accurate, and the note that seeding still lives in the legacy prisma.seed field matches package.json. merging. if you want to keep contributing, join us on Telegram: https://t.me/+DOylgFv1jyJlNzM0
Closes #1095
Problem
backend/prisma.config.tsconfigures the Prisma CLI (schema path, migrations path, datasource URL) separately from the data model inbackend/prisma/schema.prisma, but neitherbackend/README.mdnordocs/DEVELOPMENT.mdmentioned the file. A contributor debugging aprisma generate/prisma migratequirk had no pointer to check it.Changes
backend/README.md— new subsection under Prisma Database:schema.prismaowns the data model,prisma.config.tsowns CLI configuration..envfor CLI commands, which is why the file opens withimport "dotenv/config".schema,migrations.path,datasource.url).DATABASE_URL, paths resolving relative tobackend/, and the seed command still living in the legacyprisma.seedfield ofpackage.jsonrather thanmigrations.seedin the config.docs/DEVELOPMENT.md— two links into that section:prisma:generate/prisma:migratecommands.Out of scope
No changes to the Prisma config itself, and no migration to a different config format — docs only.